package com.baor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baor.domain.MenuVO;
import com.baor.domain.RoleVo;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
public interface MenuDao extends MPJBaseMapper<MenuVO> {

    List<MenuVO> menuList(Integer userId);



    List<RoleVo> roleList(Map<String,Object> params);

    Map<String,Object> pageCount();

    int addRoleMenu(Map<String,Object> params);
    int deleteRoleMenu(int id);
}
